﻿Module GUIHelper
    Public Sub FormatDataGridView(ByVal dgv As DataGridView)

        dgv.ReadOnly = True
        dgv.AllowUserToAddRows = False
        dgv.AllowUserToDeleteRows = False
        dgv.AllowUserToResizeRows = False
        dgv.RowTemplate.Height = 27
        dgv.RowHeadersVisible = False
        dgv.SelectionMode = DataGridViewSelectionMode.FullRowSelect
        dgv.MultiSelect = False
        dgv.CellBorderStyle = DataGridViewCellBorderStyle.None
        dgv.AlternatingRowsDefaultCellStyle.BackColor = Color.LightCyan

    End Sub
End Module
